import request from '@/utils/request'

// 查询救援力量列表
export function listStrength(query) {
  return request({
    url: '/backstage/strength/list',
    method: 'get',
    params: query
  })
}

// 查询救援力量详细
export function getStrength(cRescueId) {
  return request({
    url: '/backstage/strength/' + cRescueId,
    method: 'get'
  })
}

// 新增救援力量
export function addStrength(data) {
  return request({
    url: '/backstage/strength',
    method: 'post',
    data: data
  })
}

// 修改救援力量
export function updateStrength(data) {
  return request({
    url: '/backstage/strength',
    method: 'put',
    data: data
  })
}

// 删除救援力量
export function delStrength(cRescueId) {
  return request({
    url: '/backstage/strength/' + cRescueId,
    method: 'delete'
  })
}
